Labelled structures and combinatorial species

نویسندگان

  • Brent A. Yorgey
  • Stephanie Weirich
  • Jacques Carette
چکیده

We describe a theory of labelled structures, which intuitively consist of a labelled shape together with a mapping from labels to data. Labelled structures thus subsume algebraic data types as well as “labelled” types such as arrays and finite maps. This idea of decomposing container structures into shapes and data is an old one; our novel contribution is to explicitly mediate the decomposition with arbitrary labels. We demonstrate the benefits of this approach, showing how it can be used, for example, to explicitly model composition of container shapes, to model value-level sharing via superimposing multiple structures on the same data, and to model issues of memory allocation and layout. The theory of labelled structures is built directly on the foundation of combinatorial species, which serve to describe labelled shapes. The theory of species bears striking similarities to the theory of algebraic data types, and it has long been suspected that a more precise and fruitful connection could be made between the two. In a larger sense, the aim of this paper is to serve as a first step in connecting combinatorial species to the theory and practice of programming. In particular, we describe a “port” of the theory of species into constructive type theory, justifying its use as a basis for computation.

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

ar X iv : m at h / 07 02 35 0 v 1 [ m at h . C O ] 1 3 Fe b 20 07 HEREDITARY PROPERTIES OF COMBINATORIAL STRUCTURES : POSETS AND ORIENTED GRAPHS

A hereditary property of combinatorial structures is a collection of structures (e.g. graphs, posets) which is closed under isomorphism, closed under taking induced substructures (e.g. induced subgraphs), and contains arbitrarily large structures. Given a property P , we write Pn for the collection of distinct (i.e., nonisomorphic) structures in a property P with n vertices, and call the functi...

متن کامل

A theory of general combinatorial differential operators

Let D = d/dX. We develop a theory of combinatorial differential operators of the form Ω(X, D) where Ω(X, T ) is an arbitrary species of structures built on two sorts, X and T , of underlying elements. These operators act on species, F (X), instead of functions. We show how to compose these operators, how to compute their adjoints and their counterparts in the context of underlying symmetric fun...

متن کامل

A Calculus for the Random Generation of Labelled Combinatorial Structures

Flajolet, Ph., P. Zimmermann and B.V. Cutsem, A calculus for the random generation of labelled combinatorial structures, Theoretical Computer Science 132 (1994) l-35. A systematic approach to the random generation of labelled combinatorial objects is presented. It applies to structures that are decomposable, i.e., formally specifiable by grammars involving set, sequence, and cycle constructions...

متن کامل

Preparation and labeling of HMPAO kit in Iran [Persian]

In recent years, several radiopharmaceuticals have been developed for imaging regional cerebral blood flow (rCBF) such as 75Se labelled PIPSE and MOSE, ²º¹TI labelled DDC and 99mTc labelled HMPAO. HMPAO with two asymmetric carbon atoms (At the 3 and 9 positions), produces d,1 and meso isomers, only one of which is retained in the brain. Rapid intracellular conversion of 99mTc-d,1-HMPAO to...

متن کامل

21 st British Combinatorial Conference University of Reading 9 th - 13 th July 2007

A hereditary property of graphs is a collection of (isomorphism classes of) graphs which is closed under taking induced graphs, and contains arbitrarily large structures. Given a family F of graphs, the family P(F) of graphs containing no member of F as an induced subgraph is a hereditary property, and every hereditary property of graphs arises in this way. A hereditary property of other combin...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2014